export interface T_ResponseData {
    code: number,
    message: string,
    ok: boolean
}

//菜单数据与按钮数据的ts类型
export interface T_Permission {
    id?: number,
    createTime?: string,
    updateTime?: string,
    pid: number,
    name: string,
    code: null,
    toCode: null,
    type: number,
    status: null,
    level: number,
    children?: T_Permission[],
    select: boolean
}

//菜单接口返回数据的ts类型
export interface T_PermissionResponseData extends T_ResponseData {
    data: T_Permission
}

//添加与修改菜单携带参数的ts类型
export interface T_MenuParams {
    id?: number,
    code: string,
    level: number,
    name: string,
    pid?: number
}
